package com.zhang.authoritycenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhang.authoritycenter.common.model.dao.auth.OpenAccountDO;
import com.zhang.authoritycenter.common.model.request.AddOpenReqDTO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author KingHood
 * @since 2023-12-13
 */
public interface IOpenAccountService extends IService<OpenAccountDO> {

    /**
     * 检查登录
     *
     * @param userName 账号
     * @param password 密码
     * @return
     * @author zfj
     * @date 2023/12/6
     */
    OpenAccountDO checkLogin(String appId, String appSecret);

    /**
     * 添加系统用户
     *
     * @param in 系统秘钥
     * @return 是否成功
     * @author zfj
     * @date 2023/12/14
     */
    Boolean addOpen(AddOpenReqDTO in);
}
